<script>
  export default {
    emits: ['close'],
    props: {
      title: {
        type: String,
      }
    },
  }
</script>

<template>
  <div class="modal-backdrop" @click="$emit('close')"></div>
  <div class="modal">
    <h3 v-if="title">{{title}}</h3>

    <slot />
  </div>

</template>

<style scoped>

</style>